package com.sophialex.health.record.ui.visits;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.part.ViewPart;

import com.sophialex.health.record.Messages;
import com.sophialex.health.record.common.bind.swt.annotations.AnnotionProcessor;
import com.sophialex.health.record.common.utils.ImageUtil;

public abstract class SchizophreniaVisitsUI extends ViewPart {
	public SchizophreniaVisitsUI() {
	}
	private final FormToolkit toolkit = new FormToolkit(Display.getCurrent());

	protected ToolItem toolItemEdit;

	protected ToolItem toolItemDel;

	protected ToolItem toolItemSave;

	protected ToolItem toolItemCancel;

	protected ToolItem toolItemAdd;

	protected AnnotionProcessor ap = new AnnotionProcessor(this);

	private Composite composite_1;
//随访信息
	private Text txtPersonName;//姓名

	private Text txtGRDABH;//个人档案编号

	private DateTime dtVisitTime;//随访时间
//目前症状
	private Button chkHJ;//幻觉

	private Button chkWX;//妄想

	private Button chkBDTY;// 被动体验

	private Button chkSWLXZA;//思维联想障碍

	private Button chkXWZA;// 行为障碍

	private Button chkQGPD;// 情感平淡

	private Button chkSWPF;//思维贫乏

	private Button chkYZQF;//意志缺乏

	private Button chkWKGTY;//无快感体验

	private Button chkZYZA;//注意障碍

	private Button chkQT;//其他

	private Text txtQT;//其他
//自知力、睡眠、饮食
	private Combo comboZZL;//自知力

	private Combo comboSMQK;//睡眠情况

	private Combo comboYSQK;//饮食

//社会功能情况
	private Combo comboGRSHLL;//个人生活料理

	private Combo comboJWLD;//家务劳动

	private Combo comboSCLDJGZ;//生产劳动及工作

	private Combo comboXXNL;//学习能力

	private Combo comboSHRJJW;//社会人际交往
	
//躯体疾病与实验室检查
	private Text txtQTJB;

	private Text txtSYSJC;

//目前服用药物及相关
	private Text txtYWMC1;

	private Text txtCMR1;

	private Text txtMCYL1;

	private Combo comboMCYL1;

	private Text txtYWMC2;

	private Text txtCMR2;

	private Text txtMCYL2;

	private Combo comboMCYL2;

	private Text txtYWMC3;

	private Text txtCMR3;

	private Text txtMCYL3;

	private Combo comboMCYL3;

	private Text txtYWMC4;

	private Text txtCMR4;

	private Text txtMCYL4;

	private Combo comboMCYL4;

	private Combo comboFYYCX;

	private Text txtYWFZY;

	private Button chkXLKF;

	private Button chkSHLDNL;

	private Button chkZYXL;

	private Button chkXXNL;

	private Button chkSHJW;

	private Button chkKFQT;

	private Text txtZDYJ;

	private Combo comboKZQK;

	private Combo comboSFYSQM;

	private DateTime dtXCSFSJ;

	@Override
	public void createPartControl(Composite p) {
		Composite container = new Composite(p, SWT.NONE);
		container.setLayout(new FormLayout());
		createToolbar(container);
		Composite parent = new Composite(container, SWT.NONE);
		{
			FormData formData = new FormData();
			formData.top = new FormAttachment(composite_1, 0);
			formData.bottom = new FormAttachment(100, -4);
			formData.right = new FormAttachment(composite_1, 0, SWT.RIGHT);
			formData.left = new FormAttachment(composite_1, 0, SWT.LEFT);
			parent.setLayout(new FillLayout(SWT.FILL));
			parent.setLayoutData(formData);
		}
		int top_sect_space = 20;
		int row_space = 24;
		int hori_space = 10;
		int neighbor_sapce = 25;
		int sect_margin = 15;
		int left_margin = 25;
		ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
		toolkit.adapt(scrolledComposite);
		toolkit.paintBordersFor(scrolledComposite);
		scrolledComposite.setExpandHorizontal(true);
		scrolledComposite.setExpandVertical(true);

		Composite topLevelContainer = toolkit.createComposite(scrolledComposite, SWT.NONE);
		toolkit.paintBordersFor(topLevelContainer);
		topLevelContainer.setLayout(new FillLayout(SWT.HORIZONTAL));

		ScrolledForm scrldfrmNewScrolledform = toolkit.createScrolledForm(topLevelContainer);
		toolkit.paintBordersFor(scrldfrmNewScrolledform);
		scrldfrmNewScrolledform.getBody().setLayout(new FormLayout());

		Section sctBaseInfo = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctBaseInfo = new FormData();
		fd_sctBaseInfo.right = new FormAttachment(100, -sect_margin);
		fd_sctBaseInfo.top = new FormAttachment(0, 10);
		fd_sctBaseInfo.left = new FormAttachment(0, sect_margin);
		sctBaseInfo.setLayoutData(fd_sctBaseInfo);
		toolkit.paintBordersFor(sctBaseInfo);
		sctBaseInfo.setText("随访信息");// 随访信息
		sctBaseInfo.setExpanded(false);

		Composite composite = toolkit.createComposite(sctBaseInfo, SWT.NONE);
		toolkit.paintBordersFor(composite);
		sctBaseInfo.setClient(composite);
		composite.setLayout(new FormLayout());
		
		Label labName = toolkit.createLabel(composite, "姓名：", SWT.NONE);
		FormData fd_labName = new FormData();
		fd_labName.top = new FormAttachment(0, top_sect_space);
		fd_labName.left = new FormAttachment(4, 30);
		fd_labName.bottom = new FormAttachment(100, -10);
		labName.setLayoutData(fd_labName);
		
		txtPersonName = toolkit.createText(composite, "", SWT.NONE);
		FormData fd_txtPersonName = new FormData();
		fd_txtPersonName.right = new FormAttachment(labName, 132, SWT.RIGHT);
		fd_txtPersonName.top = new FormAttachment(labName, 0, SWT.TOP);
		fd_txtPersonName.left = new FormAttachment(labName, hori_space);
		txtPersonName.setLayoutData(fd_txtPersonName);
		
		Label lblGRDNBH = toolkit.createLabel(composite, "个人档案编号：", SWT.NONE);
		FormData fd_lblGRDNBH = new FormData();
		fd_lblGRDNBH.top = new FormAttachment(labName, 0, SWT.TOP);
		fd_lblGRDNBH.left = new FormAttachment(txtPersonName, neighbor_sapce);
		lblGRDNBH.setLayoutData(fd_lblGRDNBH);
		
		
		
		txtGRDABH = toolkit.createText(composite, "New Text", SWT.NONE);
		txtGRDABH.setText("");
		FormData fd_txtGRDABH = new FormData();
		fd_txtGRDABH.right = new FormAttachment(lblGRDNBH, 132, SWT.RIGHT);
		fd_txtGRDABH.top = new FormAttachment(labName, 0, SWT.TOP);
		fd_txtGRDABH.left = new FormAttachment(lblGRDNBH, hori_space);
		txtGRDABH.setLayoutData(fd_txtGRDABH);

		Label lblVistitTime = toolkit.createLabel(composite, "本次随访时间：", SWT.NONE);
		FormData fd_lblVistitTime = new FormData();
		fd_lblVistitTime.top = new FormAttachment(txtGRDABH, 0, SWT.TOP);
		fd_lblVistitTime.left = new FormAttachment(txtGRDABH, neighbor_sapce);
		lblVistitTime.setLayoutData(fd_lblVistitTime);
		
		dtVisitTime = new DateTime(composite, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtVisitTime = new FormData();
		fd_dtVisitTime.bottom = new FormAttachment(lblVistitTime, 4, SWT.BOTTOM);
		fd_dtVisitTime.left = new FormAttachment(lblVistitTime, hori_space);
		dtVisitTime.setLayoutData(fd_dtVisitTime);
		toolkit.adapt(dtVisitTime);
		toolkit.paintBordersFor(dtVisitTime);
		
		Section sctSymptom = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctSymptom = new FormData();
		fd_sctSymptom.right = new FormAttachment(100, -sect_margin);
		fd_sctSymptom.top = new FormAttachment(sctBaseInfo, top_sect_space, SWT.BOTTOM);
		fd_sctSymptom.left = new FormAttachment(0, sect_margin);
		sctSymptom.setLayoutData(fd_sctSymptom);
		toolkit.paintBordersFor(sctSymptom);
		sctSymptom.setText("目前症状");// 症状
		sctSymptom.setExpanded(true);

		Composite compSymptom = toolkit.createComposite(sctSymptom, SWT.NONE);
		toolkit.paintBordersFor(compSymptom);
		sctSymptom.setClient(compSymptom);
		compSymptom.setLayout(new FormLayout());
		
		chkHJ = toolkit.createButton(compSymptom, "幻觉", SWT.CHECK);//头痛
		FormData fd_chkHJ = new FormData();
		fd_chkHJ.top = new FormAttachment(top_sect_space);
		fd_chkHJ.left = new FormAttachment(4, left_margin);
		chkHJ.setLayoutData(fd_chkHJ);

		chkWX = toolkit.createButton(compSymptom, "妄想", SWT.CHECK);//头晕
		FormData fd_chkWX = new FormData();
		fd_chkWX.left = new FormAttachment(chkHJ, 120, SWT.LEFT);
		fd_chkWX.top = new FormAttachment(chkHJ, 0, SWT.TOP);
		chkWX.setLayoutData(fd_chkWX);

		chkBDTY = toolkit.createButton(compSymptom, "被动体验", SWT.CHECK);//心悸
		FormData fd_chkBDTY = new FormData();
		fd_chkBDTY.left = new FormAttachment(chkWX, 120, SWT.LEFT);
		fd_chkBDTY.top = new FormAttachment(chkWX, 0, SWT.TOP);
		chkBDTY.setLayoutData(fd_chkBDTY);

		chkSWLXZA = toolkit.createButton(compSymptom, "思维联想障碍", SWT.CHECK);//胸闷
		FormData fd_chkSWLXZA = new FormData();
		fd_chkSWLXZA.left = new FormAttachment(chkBDTY, 120, SWT.LEFT);
		fd_chkSWLXZA.top = new FormAttachment(chkBDTY, 0, SWT.TOP);
		chkSWLXZA.setLayoutData(fd_chkSWLXZA);

		chkXWZA = toolkit.createButton(compSymptom, "行为障碍", SWT.CHECK);//胸痛
		FormData fd_chkXWZA = new FormData();
		fd_chkXWZA.left = new FormAttachment(chkSWLXZA, 120, SWT.LEFT);
		fd_chkXWZA.top = new FormAttachment(chkSWLXZA, 0, SWT.TOP);
		chkXWZA.setLayoutData(fd_chkXWZA);

		chkQGPD = toolkit.createButton(compSymptom, "情感平淡", SWT.CHECK);//咳嗽
		FormData fd_chkQGPD = new FormData();
		fd_chkQGPD.left = new FormAttachment(chkXWZA, 120, SWT.LEFT);
		fd_chkQGPD.top = new FormAttachment(chkXWZA, 0, SWT.TOP);
		chkQGPD.setLayoutData(fd_chkQGPD);

		chkSWPF = toolkit.createButton(compSymptom, "思维贫乏", SWT.CHECK);//咳痰
		FormData fd_chkSWPF = new FormData();
		fd_chkSWPF.top = new FormAttachment(chkHJ, row_space);
		fd_chkSWPF.left = new FormAttachment(chkHJ, 0, SWT.LEFT);
		chkSWPF.setLayoutData(fd_chkSWPF);

		
		chkYZQF = toolkit.createButton(compSymptom, "意志缺乏", SWT.CHECK);//呼吸困难
		FormData fd_chkYZQF = new FormData();
		fd_chkYZQF.left = new FormAttachment(chkWX, 0, SWT.LEFT);
		fd_chkYZQF.top = new FormAttachment(chkHJ, row_space);
		chkYZQF.setLayoutData(fd_chkYZQF);

		chkWKGTY = toolkit.createButton(compSymptom, "无快感体验", SWT.CHECK);//多饮
		FormData fd_chkWKGTY = new FormData();
		fd_chkWKGTY.left = new FormAttachment(chkBDTY, 0, SWT.LEFT);
		fd_chkWKGTY.top = new FormAttachment(chkYZQF, 0, SWT.TOP);
		chkWKGTY.setLayoutData(fd_chkWKGTY);

		chkZYZA = toolkit.createButton(compSymptom, "注意障碍", SWT.CHECK);//多尿
		FormData fd_chkZYZA = new FormData();
		fd_chkZYZA.left = new FormAttachment(chkSWLXZA, 0, SWT.LEFT);
		fd_chkZYZA.top = new FormAttachment(chkWKGTY, 0, SWT.TOP);
		chkZYZA.setLayoutData(fd_chkZYZA);
		
		chkQT = toolkit.createButton(compSymptom, "其他", SWT.CHECK);//体重下降
		FormData fd_chkQT = new FormData();
		fd_chkQT.left = new FormAttachment(chkXWZA, 0, SWT.LEFT);
		fd_chkQT.top = new FormAttachment(chkZYZA, 0, SWT.TOP);
		chkQT.setLayoutData(fd_chkQT);
		
		txtQT = toolkit.createText(compSymptom, "", SWT.NONE);
		FormData fd_txtQT = new FormData();
		fd_txtQT.right = new FormAttachment(chkQT, 132, SWT.RIGHT);
		fd_txtQT.top = new FormAttachment(chkQT, 0, SWT.TOP);
		fd_txtQT.left = new FormAttachment(chkQT, hori_space);
		txtQT.setLayoutData(fd_txtQT);
		
		
		//自知力、睡眠及饮食
		Section sctTZ = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctTZ = new FormData();
		fd_sctTZ.right = new FormAttachment(100, -sect_margin);
		fd_sctTZ.top = new FormAttachment(sctSymptom, top_sect_space, SWT.BOTTOM);
		fd_sctTZ.left = new FormAttachment(0, sect_margin);
		sctTZ.setLayoutData(fd_sctTZ);
		toolkit.paintBordersFor(sctTZ);
		sctTZ.setText("自知力、睡眠及饮食");// 自知力、睡眠及饮食
		sctTZ.setExpanded(true);

		Composite compTZ = toolkit.createComposite(sctTZ, SWT.NONE);
		toolkit.paintBordersFor(compTZ);
		sctTZ.setClient(compTZ);
		compTZ.setLayout(new FormLayout());
		
		Label labXY = toolkit.createLabel(compTZ, "自知力：", SWT.NONE);
		FormData fd_labXY = new FormData();
		fd_labXY.top = new FormAttachment(0, 10);
		fd_labXY.left = new FormAttachment(4, left_margin);
		fd_labXY.bottom = new FormAttachment(100, -10);
		labXY.setLayoutData(fd_labXY);
		
		comboZZL = new Combo(compTZ, SWT.READ_ONLY);
		comboZZL.setItems(new String[] {"自知力完全", "自知力不全", "自知力缺失"});
		FormData fd_comboZZL = new FormData();
		fd_comboZZL.bottom = new FormAttachment(labXY, 4, SWT.BOTTOM);
		fd_comboZZL.left = new FormAttachment(labXY, hori_space);
		comboZZL.setLayoutData(fd_comboZZL);
		toolkit.adapt(comboZZL);
		toolkit.paintBordersFor(comboZZL);
		
		Label labSMQK = toolkit.createLabel(compTZ, "睡眠情况：", SWT.NONE);
		FormData fd_labSMQK = new FormData();
		fd_labSMQK.top = new FormAttachment(labXY, 0, SWT.TOP);
		fd_labSMQK.left = new FormAttachment(comboZZL, neighbor_sapce);
		labSMQK.setLayoutData(fd_labSMQK);
		
		comboSMQK = new Combo(compTZ, SWT.READ_ONLY);
		comboSMQK.setItems(new String[] {"较好", "一般", "差"});
		FormData fd_comboSMQK = new FormData();
		fd_comboSMQK.bottom = new FormAttachment(labSMQK, 4, SWT.BOTTOM);
		fd_comboSMQK.left = new FormAttachment(labSMQK, hori_space);
		comboSMQK.setLayoutData(fd_comboSMQK);
		toolkit.adapt(comboSMQK);
		toolkit.paintBordersFor(comboSMQK);
		
		Label labYSQK = toolkit.createLabel(compTZ, "饮食情况：", SWT.NONE);
		FormData fd_labYSQK = new FormData();
		fd_labYSQK.top = new FormAttachment(labXY, 0, SWT.TOP);
		fd_labYSQK.left = new FormAttachment(comboSMQK, neighbor_sapce);
		labYSQK.setLayoutData(fd_labYSQK);
		
		comboYSQK = new Combo(compTZ, SWT.READ_ONLY);
		comboYSQK.setItems(new String[] {"较好", "一般", "差"});
		FormData fd_comboYSQK = new FormData();
		fd_comboYSQK.bottom = new FormAttachment(labYSQK, 4, SWT.BOTTOM);
		fd_comboYSQK.left = new FormAttachment(labYSQK, hori_space);
		comboYSQK.setLayoutData(fd_comboYSQK);
		toolkit.adapt(comboYSQK);
		toolkit.paintBordersFor(comboYSQK);
		
		
		//社会功能情况
		Section sctSHGNQK = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctSHGNQK = new FormData();
		fd_sctSHGNQK.right = new FormAttachment(100, -sect_margin);
		fd_sctSHGNQK.top = new FormAttachment(sctTZ, top_sect_space, SWT.BOTTOM);
		fd_sctSHGNQK.left = new FormAttachment(0, sect_margin);
		sctSHGNQK.setLayoutData(fd_sctSHGNQK);
		toolkit.paintBordersFor(sctSHGNQK);
		sctSHGNQK.setText("社会功能情况");// 自知力、睡眠及饮食
		sctSHGNQK.setExpanded(false);

		Composite compSHGNQK = toolkit.createComposite(sctSHGNQK, SWT.NONE);
		toolkit.paintBordersFor(compSHGNQK);
		sctSHGNQK.setClient(compSHGNQK);
		compSHGNQK.setLayout(new FormLayout());
		
		Label labGRSHLL = toolkit.createLabel(compSHGNQK, "个人生活料理：", SWT.NONE);
		FormData fd_labGRSHLL = new FormData();
		fd_labGRSHLL.top = new FormAttachment(0, 10);
		fd_labGRSHLL.left = new FormAttachment(4, left_margin);
		fd_labGRSHLL.bottom = new FormAttachment(100, -10);
		labGRSHLL.setLayoutData(fd_labGRSHLL);
		
		comboGRSHLL = new Combo(compSHGNQK, SWT.READ_ONLY);
		comboGRSHLL.setItems(new String[] {"良好", "一般", "较差"});
		FormData fd_comboGRSHLL = new FormData();
		fd_comboGRSHLL.bottom = new FormAttachment(labGRSHLL, 4, SWT.BOTTOM);
		fd_comboGRSHLL.left = new FormAttachment(labGRSHLL, hori_space);
		comboGRSHLL.setLayoutData(fd_comboGRSHLL);
		toolkit.adapt(comboGRSHLL);
		toolkit.paintBordersFor(comboGRSHLL);
		
		Label labJWLD = toolkit.createLabel(compSHGNQK, "家务劳动：", SWT.NONE);
		FormData fd_labJWLD = new FormData();
		fd_labJWLD.top = new FormAttachment(labGRSHLL, 0, SWT.TOP);
		fd_labJWLD.left = new FormAttachment(comboGRSHLL, neighbor_sapce);
		labJWLD.setLayoutData(fd_labJWLD);
		
		comboJWLD = new Combo(compSHGNQK, SWT.READ_ONLY);
		comboJWLD.setItems(new String[] {"较好", "一般", "差"});
		FormData fd_comboJWLD = new FormData();
		fd_comboJWLD.bottom = new FormAttachment(labJWLD, 4, SWT.BOTTOM);
		fd_comboJWLD.left = new FormAttachment(labJWLD, hori_space);
		comboJWLD.setLayoutData(fd_comboJWLD);
		toolkit.adapt(comboJWLD);
		toolkit.paintBordersFor(comboJWLD);
		
		Label labSCLDJGZ = toolkit.createLabel(compSHGNQK, "生产劳动及工作：", SWT.NONE);
		FormData fd_labSCLDJGZ = new FormData();
		fd_labSCLDJGZ.top = new FormAttachment(labGRSHLL, 0, SWT.TOP);
		fd_labSCLDJGZ.left = new FormAttachment(comboJWLD, neighbor_sapce);
		labSCLDJGZ.setLayoutData(fd_labSCLDJGZ);
		
		comboSCLDJGZ = new Combo(compSHGNQK, SWT.READ_ONLY);
		comboSCLDJGZ.setItems(new String[] {"较好", "一般", "差"});
		FormData fd_comboSCLDJGZ = new FormData();
		fd_comboSCLDJGZ.bottom = new FormAttachment(labSCLDJGZ, 4, SWT.BOTTOM);
		fd_comboSCLDJGZ.left = new FormAttachment(labSCLDJGZ, hori_space);
		comboSCLDJGZ.setLayoutData(fd_comboSCLDJGZ);
		toolkit.adapt(comboSCLDJGZ);
		toolkit.paintBordersFor(comboSCLDJGZ);
		
		Label labXXNL = toolkit.createLabel(compSHGNQK, "学习能力：", SWT.NONE);
		FormData fd_labXXNL = new FormData();
		fd_labXXNL.top = new FormAttachment(labSCLDJGZ, 0, SWT.TOP);
		fd_labXXNL.left = new FormAttachment(comboSCLDJGZ, neighbor_sapce);
		labXXNL.setLayoutData(fd_labXXNL);
		
		comboXXNL = new Combo(compSHGNQK, SWT.READ_ONLY);
		comboXXNL.setItems(new String[] {"较好", "一般", "差"});
		FormData fd_comboXXNL = new FormData();
		fd_comboXXNL.bottom = new FormAttachment(labXXNL, 4, SWT.BOTTOM);
		fd_comboXXNL.left = new FormAttachment(labXXNL, hori_space);
		comboXXNL.setLayoutData(fd_comboXXNL);
		toolkit.adapt(comboXXNL);
		toolkit.paintBordersFor(comboXXNL);
		
		Label labSHRJJW = toolkit.createLabel(compSHGNQK, "社会人际交往：", SWT.NONE);
		FormData fd_labSHRJJW = new FormData();
		fd_labSHRJJW.top = new FormAttachment(labXXNL, 0, SWT.TOP);
		fd_labSHRJJW.left = new FormAttachment(comboXXNL, neighbor_sapce);
		labSHRJJW.setLayoutData(fd_labSHRJJW);
		
		comboSHRJJW = new Combo(compSHGNQK, SWT.READ_ONLY);
		comboSHRJJW.setItems(new String[] {"较好", "一般", "差"});
		FormData fd_comboSHRJJW = new FormData();
		fd_comboSHRJJW.bottom = new FormAttachment(labSHRJJW, 4, SWT.BOTTOM);
		fd_comboSHRJJW.left = new FormAttachment(labSHRJJW, hori_space);
		comboSHRJJW.setLayoutData(fd_comboSHRJJW);
		toolkit.adapt(comboSHRJJW);
		toolkit.paintBordersFor(comboSHRJJW);
		
		
		//躯体疾病及实验室检查
		Section sctQTJBJSYSJC = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctQTJBJSYSJC = new FormData();
		fd_sctQTJBJSYSJC.right = new FormAttachment(100, -sect_margin);
		fd_sctQTJBJSYSJC.top = new FormAttachment(sctSHGNQK, top_sect_space, SWT.BOTTOM);
		fd_sctQTJBJSYSJC.left = new FormAttachment(0, sect_margin);
		sctQTJBJSYSJC.setLayoutData(fd_sctQTJBJSYSJC);
		toolkit.paintBordersFor(sctQTJBJSYSJC);
		sctQTJBJSYSJC.setText("躯体疾病及实验室检查");// 实验室检查
		sctQTJBJSYSJC.setExpanded(false);

		Composite compQTJBJSYSJC = toolkit.createComposite(sctQTJBJSYSJC, SWT.NONE);
		toolkit.paintBordersFor(compQTJBJSYSJC);
		sctQTJBJSYSJC.setClient(compQTJBJSYSJC);
		compQTJBJSYSJC.setLayout(new FormLayout());
		
		Label labQTJB = toolkit.createLabel(compQTJBJSYSJC, "躯体疾病：", SWT.NONE);
		FormData fd_labQTJB = new FormData();
		fd_labQTJB.top = new FormAttachment(0, 10);
		fd_labQTJB.left = new FormAttachment(4, left_margin);
		labQTJB.setLayoutData(fd_labQTJB);
		
		txtQTJB = toolkit.createText(compQTJBJSYSJC, "", SWT.MULTI);
		FormData fd_txtQTJB = new FormData();
		fd_txtQTJB.top = new FormAttachment(labQTJB, 0, SWT.TOP);
		fd_txtQTJB.left = new FormAttachment(labQTJB, hori_space);
		fd_txtQTJB.right = new FormAttachment(labQTJB, 776);
		fd_txtQTJB.bottom = new FormAttachment(labQTJB, 50, SWT.BOTTOM);
		txtQTJB.setLayoutData(fd_txtQTJB);
		
		Label labSYSJC = toolkit.createLabel(compQTJBJSYSJC, "实验室检查：", SWT.NONE);
		FormData fd_labSYSJC = new FormData();
		fd_labSYSJC.top = new FormAttachment(txtQTJB,row_space, SWT.BOTTOM);
		fd_labSYSJC.right = new FormAttachment(labQTJB, 0, SWT.RIGHT);
		fd_labSYSJC.bottom =  new FormAttachment(100, -60);
		labSYSJC.setLayoutData(fd_labSYSJC);
		
		txtSYSJC = toolkit.createText(compQTJBJSYSJC, "New Text", SWT.MULTI);
		txtSYSJC.setText("");
		FormData fd_txtSYSJC = new FormData();
		fd_txtSYSJC.top = new FormAttachment(labSYSJC, 0, SWT.TOP);
		fd_txtSYSJC.left = new FormAttachment(txtQTJB, 0, SWT.LEFT);
		fd_txtSYSJC.right = new FormAttachment(txtQTJB, 0, SWT.RIGHT);
		fd_txtSYSJC.bottom = new FormAttachment(labSYSJC, 50, SWT.BOTTOM);
		txtSYSJC.setLayoutData(fd_txtSYSJC);
		
		//目前服用药物及相关
		Section sctYWJT = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctYWJT = new FormData();
		fd_sctYWJT.right = new FormAttachment(100, -sect_margin);
		fd_sctYWJT.top = new FormAttachment(sctQTJBJSYSJC, top_sect_space, SWT.BOTTOM);
		fd_sctYWJT.left = new FormAttachment(0, sect_margin);
		sctYWJT.setLayoutData(fd_sctYWJT);
		toolkit.paintBordersFor(sctYWJT);
		sctYWJT.setText("目前服用药物及相关");// 目前服用药物及相关
		sctYWJT.setExpanded(true);

		Composite compYWJT = toolkit.createComposite(sctYWJT, SWT.NONE);
		toolkit.paintBordersFor(compYWJT);
		sctYWJT.setClient(compYWJT);
		compYWJT.setLayout(new FormLayout());
		
		Label labYWMC1 = toolkit.createLabel(compYWJT, "药物名称1：", SWT.NONE);
		FormData fd_labYWMC1 = new FormData();
		fd_labYWMC1.top = new FormAttachment(0, top_sect_space);
		fd_labYWMC1.left = new FormAttachment(4, left_margin);
		labYWMC1.setLayoutData(fd_labYWMC1);
		
		txtYWMC1 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC1 = new FormData();
		fd_txtYWMC1.right = new FormAttachment(labYWMC1, 132, SWT.RIGHT);
		fd_txtYWMC1.top = new FormAttachment(labYWMC1, 0, SWT.TOP);
		fd_txtYWMC1.left = new FormAttachment(labYWMC1, hori_space);
		txtYWMC1.setLayoutData(fd_txtYWMC1);
		
		Label labYF1 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF1 = new FormData();
		fd_labYF1.top = new FormAttachment(txtYWMC1, 0, SWT.TOP);
		fd_labYF1.left = new FormAttachment(txtYWMC1, neighbor_sapce);
		labYF1.setLayoutData(fd_labYF1);
		
		txtCMR1 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR1 = new FormData();
		fd_txtCMR1.right = new FormAttachment(labYF1, 50, SWT.RIGHT);
		fd_txtCMR1.top = new FormAttachment(labYF1, 0, SWT.TOP);
		fd_txtCMR1.left = new FormAttachment(labYF1, hori_space);
		txtCMR1.setLayoutData(fd_txtCMR1);
		
		Label labCMR1 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR1 = new FormData();
		fd_labCMR1.top = new FormAttachment(txtCMR1, 0, SWT.TOP);
		fd_labCMR1.left = new FormAttachment(txtCMR1, hori_space);
		labCMR1.setLayoutData(fd_labCMR1);
		
		txtMCYL1 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL1 = new FormData();
		fd_txtMCYL1.right = new FormAttachment(labCMR1, 70, SWT.RIGHT);
		fd_txtMCYL1.top = new FormAttachment(labCMR1, 0, SWT.TOP);
		fd_txtMCYL1.left = new FormAttachment(labCMR1, neighbor_sapce);
		txtMCYL1.setLayoutData(fd_txtMCYL1);
		
		comboMCYL1 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL1.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL1 = new FormData();
		fd_comboMCYL1.bottom = new FormAttachment(labYWMC1, 4, SWT.BOTTOM);
		fd_comboMCYL1.left = new FormAttachment(txtMCYL1, hori_space);
		comboMCYL1.setLayoutData(fd_comboMCYL1);
		toolkit.adapt(comboMCYL1);
		toolkit.paintBordersFor(comboMCYL1);
		
		Label labYWMC2 = toolkit.createLabel(compYWJT, "药物名称2：", SWT.NONE);
		FormData fd_labYWMC2 = new FormData();
		fd_labYWMC2.top = new FormAttachment(labYWMC1, row_space);
		fd_labYWMC2.left = new FormAttachment(labYWMC1, 0, SWT.LEFT);
		labYWMC2.setLayoutData(fd_labYWMC2);
		
		txtYWMC2 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC2 = new FormData();
		fd_txtYWMC2.right = new FormAttachment(labYWMC2, 132, SWT.RIGHT);
		fd_txtYWMC2.top = new FormAttachment(labYWMC2, 0, SWT.TOP);
		fd_txtYWMC2.left = new FormAttachment(labYWMC2, hori_space);
		txtYWMC2.setLayoutData(fd_txtYWMC2);
		
		Label labYF2 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF2 = new FormData();
		fd_labYF2.top = new FormAttachment(txtYWMC2, 0, SWT.TOP);
		fd_labYF2.left = new FormAttachment(txtYWMC2, neighbor_sapce);
		labYF2.setLayoutData(fd_labYF2);
		
		txtCMR2 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR2 = new FormData();
		fd_txtCMR2.right = new FormAttachment(labYF2, 50, SWT.RIGHT);
		fd_txtCMR2.top = new FormAttachment(labYF2, 0, SWT.TOP);
		fd_txtCMR2.left = new FormAttachment(labYF2, hori_space);
		txtCMR2.setLayoutData(fd_txtCMR2);
		
		Label labCMR2 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR2 = new FormData();
		fd_labCMR2.top = new FormAttachment(txtCMR2, 0, SWT.TOP);
		fd_labCMR2.left = new FormAttachment(txtCMR2, hori_space);
		labCMR2.setLayoutData(fd_labCMR2);
		
		txtMCYL2 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL2 = new FormData();
		fd_txtMCYL2.right = new FormAttachment(labCMR2, 70, SWT.RIGHT);
		fd_txtMCYL2.top = new FormAttachment(labCMR2, 0, SWT.TOP);
		fd_txtMCYL2.left = new FormAttachment(labCMR2, neighbor_sapce);
		txtMCYL2.setLayoutData(fd_txtMCYL2);
		
		comboMCYL2 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL2.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL2 = new FormData();
		fd_comboMCYL2.bottom = new FormAttachment(labYWMC2, 4, SWT.BOTTOM);
		fd_comboMCYL2.left = new FormAttachment(txtMCYL2, hori_space);
		comboMCYL2.setLayoutData(fd_comboMCYL2);
		toolkit.adapt(comboMCYL2);
		toolkit.paintBordersFor(comboMCYL2);
		
		Label labYWMC3 = toolkit.createLabel(compYWJT, "药物名称3：", SWT.NONE);
		FormData fd_labYWMC3 = new FormData();
		fd_labYWMC3.top = new FormAttachment(labYWMC2, row_space);
		fd_labYWMC3.left = new FormAttachment(labYWMC2, 0, SWT.LEFT);
		labYWMC3.setLayoutData(fd_labYWMC3);
		
		txtYWMC3 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC3 = new FormData();
		fd_txtYWMC3.right = new FormAttachment(labYWMC3, 132, SWT.RIGHT);
		fd_txtYWMC3.top = new FormAttachment(labYWMC3, 0, SWT.TOP);
		fd_txtYWMC3.left = new FormAttachment(labYWMC3, hori_space);
		txtYWMC3.setLayoutData(fd_txtYWMC3);
		
		Label labYF3 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF3 = new FormData();
		fd_labYF3.top = new FormAttachment(txtYWMC3, 0, SWT.TOP);
		fd_labYF3.left = new FormAttachment(txtYWMC3, neighbor_sapce);
		labYF3.setLayoutData(fd_labYF3);
		
		txtCMR3 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR3 = new FormData();
		fd_txtCMR3.right = new FormAttachment(labYF3, 50, SWT.RIGHT);
		fd_txtCMR3.top = new FormAttachment(labYF3, 0, SWT.TOP);
		fd_txtCMR3.left = new FormAttachment(labYF3, hori_space);
		txtCMR3.setLayoutData(fd_txtCMR3);
		
		Label labCMR3 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR3 = new FormData();
		fd_labCMR3.top = new FormAttachment(txtCMR3, 0, SWT.TOP);
		fd_labCMR3.left = new FormAttachment(txtCMR3, hori_space);
		labCMR3.setLayoutData(fd_labCMR3);
		
		txtMCYL3 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL3 = new FormData();
		fd_txtMCYL3.right = new FormAttachment(labCMR3, 70, SWT.RIGHT);
		fd_txtMCYL3.top = new FormAttachment(labCMR3, 0, SWT.TOP);
		fd_txtMCYL3.left = new FormAttachment(labCMR3, neighbor_sapce);
		txtMCYL3.setLayoutData(fd_txtMCYL3);
		
		comboMCYL3 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL3.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL3 = new FormData();
		fd_comboMCYL3.bottom = new FormAttachment(labYWMC3, 4, SWT.BOTTOM);
		fd_comboMCYL3.left = new FormAttachment(txtMCYL3, hori_space);
		comboMCYL3.setLayoutData(fd_comboMCYL3);
		toolkit.adapt(comboMCYL3);
		toolkit.paintBordersFor(comboMCYL3);
		
		Label labYWMC4 = toolkit.createLabel(compYWJT, "药物名称4：", SWT.NONE);
		FormData fd_labYWMC4 = new FormData();
		fd_labYWMC4.top = new FormAttachment(labYWMC3, row_space);
		fd_labYWMC4.left = new FormAttachment(labYWMC3, 0, SWT.LEFT);
		labYWMC4.setLayoutData(fd_labYWMC4);
		
		txtYWMC4 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtYWMC4 = new FormData();
		fd_txtYWMC4.right = new FormAttachment(labYWMC4, 132, SWT.RIGHT);
		fd_txtYWMC4.top = new FormAttachment(labYWMC4, 0, SWT.TOP);
		fd_txtYWMC4.left = new FormAttachment(labYWMC4, hori_space);
		txtYWMC4.setLayoutData(fd_txtYWMC4);
		
		Label labYF4 = toolkit.createLabel(compYWJT, "用法：", SWT.NONE);
		FormData fd_labYF4 = new FormData();
		fd_labYF4.top = new FormAttachment(txtYWMC4, 0, SWT.TOP);
		fd_labYF4.left = new FormAttachment(txtYWMC4, neighbor_sapce);
		labYF4.setLayoutData(fd_labYF4);
		
		txtCMR4 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtCMR4 = new FormData();
		fd_txtCMR4.right = new FormAttachment(labYF4, 50, SWT.RIGHT);
		fd_txtCMR4.top = new FormAttachment(labYF4, 0, SWT.TOP);
		fd_txtCMR4.left = new FormAttachment(labYF4, hori_space);
		txtCMR4.setLayoutData(fd_txtCMR4);
		
		Label labCMR4 = toolkit.createLabel(compYWJT, "次/日", SWT.NONE);
		FormData fd_labCMR4 = new FormData();
		fd_labCMR4.top = new FormAttachment(txtCMR4, 0, SWT.TOP);
		fd_labCMR4.left = new FormAttachment(txtCMR4, hori_space);
		labCMR4.setLayoutData(fd_labCMR4);
		
		txtMCYL4 = toolkit.createText(compYWJT, "", SWT.NONE);
		FormData fd_txtMCYL4 = new FormData();
		fd_txtMCYL4.right = new FormAttachment(labCMR4, 70, SWT.RIGHT);
		fd_txtMCYL4.top = new FormAttachment(labCMR4, 0, SWT.TOP);
		fd_txtMCYL4.left = new FormAttachment(labCMR4, neighbor_sapce);
		txtMCYL4.setLayoutData(fd_txtMCYL4);
		
		comboMCYL4 = new Combo(compYWJT, SWT.READ_ONLY);
		comboMCYL4.setItems(new String[] {"mg/次", "片/次"});
		FormData fd_comboMCYL4 = new FormData();
		fd_comboMCYL4.bottom = new FormAttachment(labYWMC4, 4, SWT.BOTTOM);
		fd_comboMCYL4.left = new FormAttachment(txtMCYL4, hori_space);
		comboMCYL4.setLayoutData(fd_comboMCYL4);
		toolkit.adapt(comboMCYL4);
		toolkit.paintBordersFor(comboMCYL4);
		
		Label labFYQK = toolkit.createLabel(compYWJT, "服药依从性：", SWT.NONE);
		FormData fd_labFYQK = new FormData();
		fd_labFYQK.top = new FormAttachment(labYWMC4, row_space);
		fd_labFYQK.right = new FormAttachment(labYWMC4, 0, SWT.RIGHT);
		labFYQK.setLayoutData(fd_labFYQK);
		
		comboFYYCX = new Combo(compYWJT, SWT.READ_ONLY);
		comboFYYCX.setItems(new String[] {"自行坚持服药", "在家属监督下服药", "间断服药", "拒绝服药"});
		FormData fd_comboFYYCX = new FormData();
		fd_comboFYYCX.bottom = new FormAttachment(labFYQK, 4, SWT.BOTTOM);
		fd_comboFYYCX.left = new FormAttachment(labFYQK, hori_space);
		comboFYYCX.setLayoutData(fd_comboFYYCX);
		toolkit.adapt(comboFYYCX);
		toolkit.paintBordersFor(comboFYYCX);
		
		Label labYWFZY = toolkit.createLabel(compYWJT, "药物副作用：", SWT.NONE);
		FormData fd_labYWFZY = new FormData();
		fd_labYWFZY.top = new FormAttachment(labFYQK,row_space, SWT.BOTTOM);
		fd_labYWFZY.right = new FormAttachment(labFYQK, 0, SWT.RIGHT);
		fd_labYWFZY.bottom =  new FormAttachment(100, -50);
		labYWFZY.setLayoutData(fd_labYWFZY);
		
		txtYWFZY = toolkit.createText(compYWJT, "", SWT.MULTI);
		FormData fd_txtYWFZY = new FormData();
		fd_txtYWFZY.top = new FormAttachment(labYWFZY, 0, SWT.TOP);
		fd_txtYWFZY.left = new FormAttachment(comboFYYCX, 0, SWT.LEFT);
		fd_txtYWFZY.right = new FormAttachment(comboMCYL4, 0, SWT.RIGHT);
		fd_txtYWFZY.bottom = new FormAttachment(labYWFZY, 40, SWT.BOTTOM);
		txtYWFZY.setLayoutData(fd_txtYWFZY);
		
		//康复、指导、控制
		Section sctKFQKJZDYJ = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctKFQKJZDYJ = new FormData();
		fd_sctKFQKJZDYJ.right = new FormAttachment(100, -sect_margin);
		fd_sctKFQKJZDYJ.top = new FormAttachment(sctYWJT, top_sect_space, SWT.BOTTOM);
		fd_sctKFQKJZDYJ.left = new FormAttachment(0, sect_margin);
		sctKFQKJZDYJ.setLayoutData(fd_sctKFQKJZDYJ);
		toolkit.paintBordersFor(sctKFQKJZDYJ);
		sctKFQKJZDYJ.setText("康复、指导、控制");// 康复、指导、控制
		sctKFQKJZDYJ.setExpanded(true);

		Composite compKFQKJZDYJ = toolkit.createComposite(sctKFQKJZDYJ, SWT.NONE);
		toolkit.paintBordersFor(compKFQKJZDYJ);
		sctKFQKJZDYJ.setClient(compKFQKJZDYJ);
		compKFQKJZDYJ.setLayout(new FormLayout());
		
		Label labKFCS = toolkit.createLabel(compKFQKJZDYJ, "康复措施：", SWT.NONE);
		FormData fd_labKFCS = new FormData();
		fd_labKFCS.top = new FormAttachment(0, top_sect_space);
		fd_labKFCS.left = new FormAttachment(4, left_margin);
		
		labKFCS.setLayoutData(fd_labKFCS);
		
		chkXLKF = toolkit.createButton(compKFQKJZDYJ, "心理康复", SWT.CHECK);//头痛
		FormData fd_chkXLKF = new FormData();
		fd_chkXLKF.top = new FormAttachment(labKFCS, 0, SWT.TOP);
		fd_chkXLKF.left = new FormAttachment(labKFCS, hori_space);
		chkXLKF.setLayoutData(fd_chkXLKF);

		chkSHLDNL = toolkit.createButton(compKFQKJZDYJ, "生活劳动能力", SWT.CHECK);//头晕
		FormData fd_chkSHLDNL = new FormData();
		fd_chkSHLDNL.left = new FormAttachment(chkXLKF, 120, SWT.LEFT);
		fd_chkSHLDNL.top = new FormAttachment(chkXLKF, 0, SWT.TOP);
		chkSHLDNL.setLayoutData(fd_chkSHLDNL);

		chkZYXL = toolkit.createButton(compKFQKJZDYJ, "职业训练", SWT.CHECK);//心悸
		FormData fd_chkZYXL = new FormData();
		fd_chkZYXL.left = new FormAttachment(chkSHLDNL, 120, SWT.LEFT);
		fd_chkZYXL.top = new FormAttachment(chkSHLDNL, 0, SWT.TOP);
		chkZYXL.setLayoutData(fd_chkZYXL);

		chkXXNL = toolkit.createButton(compKFQKJZDYJ, "学习能力", SWT.CHECK);//胸闷
		FormData fd_chkXXNL = new FormData();
		fd_chkXXNL.left = new FormAttachment(chkZYXL, 120, SWT.LEFT);
		fd_chkXXNL.top = new FormAttachment(chkZYXL, 0, SWT.TOP);
		chkXXNL.setLayoutData(fd_chkXXNL);

		chkSHJW = toolkit.createButton(compKFQKJZDYJ, "社会交往", SWT.CHECK);//胸痛
		FormData fd_chkSHJW = new FormData();
		fd_chkSHJW.left = new FormAttachment(chkXXNL, 120, SWT.LEFT);
		fd_chkSHJW.top = new FormAttachment(chkXXNL, 0, SWT.TOP);
		chkSHJW.setLayoutData(fd_chkSHJW);

		chkKFQT = toolkit.createButton(compKFQKJZDYJ, "其他", SWT.CHECK);//咳嗽
		FormData fd_chkKFQT = new FormData();
		fd_chkKFQT.left = new FormAttachment(chkSHJW, 120, SWT.LEFT);
		fd_chkKFQT.top = new FormAttachment(chkSHJW, 0, SWT.TOP);
		chkKFQT.setLayoutData(fd_chkKFQT);
		
		Label labZDYJ = toolkit.createLabel(compKFQKJZDYJ, "指导意见：", SWT.NONE);
		FormData fd_labZDYJ = new FormData();
		fd_labZDYJ.top = new FormAttachment(labKFCS,row_space, SWT.BOTTOM);
		fd_labZDYJ.right = new FormAttachment(labKFCS, 0, SWT.RIGHT);
		labZDYJ.setLayoutData(fd_labZDYJ);
		
		txtZDYJ = toolkit.createText(compKFQKJZDYJ, "", SWT.MULTI);
		FormData fd_txtZDYJ = new FormData();
		fd_txtZDYJ.top = new FormAttachment(labZDYJ, 0, SWT.TOP);
		fd_txtZDYJ.left = new FormAttachment(labZDYJ, hori_space);
		fd_txtZDYJ.right = new FormAttachment(chkSHJW, 0, SWT.RIGHT);
		fd_txtZDYJ.bottom = new FormAttachment(labZDYJ, 40, SWT.BOTTOM);
		txtZDYJ.setLayoutData(fd_txtZDYJ);
		
		Label labKZQK = toolkit.createLabel(compKFQKJZDYJ, "控制情况：", SWT.NONE);
		FormData fd_labKZQK = new FormData();
		fd_labKZQK.top = new FormAttachment(txtZDYJ, row_space, SWT.BOTTOM);
		fd_labKZQK.right = new FormAttachment(labZDYJ, 0, SWT.RIGHT);
		fd_labKZQK.bottom =  new FormAttachment(100, -10);
		labKZQK.setLayoutData(fd_labKZQK);
		
		comboKZQK = new Combo(compKFQKJZDYJ, SWT.READ_ONLY);
		comboKZQK.setItems(new String[] {"症状明显", "好转", "稳定"});
		FormData fd_comboKZQK = new FormData();
		fd_comboKZQK.bottom = new FormAttachment(labKZQK, 4, SWT.BOTTOM);
		fd_comboKZQK.left = new FormAttachment(labKZQK, hori_space);
		comboKZQK.setLayoutData(fd_comboKZQK);
		toolkit.adapt(comboKZQK);
		toolkit.paintBordersFor(comboKZQK);
		
		Section sctSFXY = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctSFXY = new FormData();
		fd_sctSFXY.right = new FormAttachment(100, -sect_margin);
		fd_sctSFXY.top = new FormAttachment(sctKFQKJZDYJ, top_sect_space, SWT.BOTTOM);
		fd_sctSFXY.left = new FormAttachment(0, sect_margin);
		sctSFXY.setLayoutData(fd_sctSFXY);
		toolkit.paintBordersFor(sctSFXY);
		sctSFXY.setText("操作信息");// 本次随访医生建议
		sctSFXY.setExpanded(true);

		Composite compSFXY = toolkit.createComposite(sctSFXY, SWT.NONE);
		toolkit.paintBordersFor(compSFXY);
		sctSFXY.setClient(compSFXY);
		compSFXY.setLayout(new FormLayout());
		
		Label labSFYSQM = toolkit.createLabel(compSFXY, "随访医生签名：", SWT.NONE);
		FormData fd_labSFYSQM = new FormData();
		fd_labSFYSQM.top = new FormAttachment(0, 10);
		fd_labSFYSQM.left = new FormAttachment(4, left_margin);
		fd_labSFYSQM.bottom = new FormAttachment(100,-20);
		labSFYSQM.setLayoutData(fd_labSFYSQM);
		
		comboSFYSQM = new Combo(compSFXY, SWT.READ_ONLY);
		FormData fd_comboSFYSQM = new FormData();
		fd_comboSFYSQM.bottom = new FormAttachment(labSFYSQM, 4, SWT.BOTTOM);
		fd_comboSFYSQM.left = new FormAttachment(labSFYSQM, hori_space);
		comboSFYSQM.setLayoutData(fd_comboSFYSQM);
		toolkit.adapt(comboSFYSQM);
		toolkit.paintBordersFor(comboSFYSQM);
		
		Label lblXCSFSJ = toolkit.createLabel(compSFXY, "下次随访时间：", SWT.NONE);
		FormData fd_lblXCSFSJ = new FormData();
		fd_lblXCSFSJ.left = new FormAttachment(comboSFYSQM, neighbor_sapce);
		fd_lblXCSFSJ.top = new FormAttachment(labSFYSQM, 0, SWT.TOP);
		lblXCSFSJ.setLayoutData(fd_lblXCSFSJ);
		
		dtXCSFSJ = new DateTime(compSFXY, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtXCSFSJ = new FormData();
		fd_dtXCSFSJ.top = new FormAttachment(lblXCSFSJ, -4, SWT.TOP);
		fd_dtXCSFSJ.left = new FormAttachment(lblXCSFSJ, hori_space);
		dtXCSFSJ.setLayoutData(fd_dtXCSFSJ);
		toolkit.adapt(dtXCSFSJ);
		toolkit.paintBordersFor(dtXCSFSJ);
		
		scrolledComposite.setContent(topLevelContainer);
		scrolledComposite.setMinSize(topLevelContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT));

	}

	@Override
	public void setFocus() {
		// TODO Auto-generated method stub

	}

	private void createToolbar(Composite container) {

		composite_1 = new Composite(container, SWT.NONE);
		composite_1.setLayout(new FillLayout(SWT.HORIZONTAL));
		{
			FormData formData = new FormData();
			formData.height = 50;
			formData.right = new FormAttachment(100);
			formData.top = new FormAttachment(0);
			formData.left = new FormAttachment(0);
			composite_1.setLayoutData(formData);
		}
		{
			ToolBar toolBar = new ToolBar(composite_1, SWT.FLAT | SWT.NONE);
			toolBar.setBackgroundImage(ImageUtil.TBBJ);
			{
				toolItemAdd = new ToolItem(toolBar, SWT.NONE);
				toolItemAdd.setText(Messages.getString("RecordUI.0")); //$NON-NLS-1$
				toolItemAdd.setImage(ImageUtil.add);
				toolItemAdd.addSelectionListener(new SelectionAdapter() {
					@Override
					public void widgetSelected(SelectionEvent e) {
						doAdd();
					}
				});
			}
			{
				toolItemEdit = new ToolItem(toolBar, SWT.NONE);
				toolItemEdit.setText(Messages.getString("RecordUI.1")); //$NON-NLS-1$
				toolItemEdit.setImage(ImageUtil.edit);
				toolItemEdit.addSelectionListener(new SelectionAdapter() {
					@Override
					public void widgetSelected(SelectionEvent e) {
						doEdit();
					}
				});
			}
			{
				toolItemDel = new ToolItem(toolBar, SWT.NONE);
				toolItemDel.setText(Messages.getString("RecordUI.2")); //$NON-NLS-1$
				toolItemDel.setImage(ImageUtil.delete);
				toolItemDel.addSelectionListener(new SelectionAdapter() {
					@Override
					public void widgetSelected(SelectionEvent e) {
						doDel();
					}
				});
			}
			{
				@SuppressWarnings("unused")
				ToolItem toolItem = new ToolItem(toolBar, SWT.SEPARATOR);
			}
			{
				toolItemSave = new ToolItem(toolBar, SWT.NONE);
				toolItemSave.setText(Messages.getString("RecordUI.3")); //$NON-NLS-1$
				toolItemSave.addSelectionListener(new SelectionAdapter() {
					@Override
					public void widgetSelected(SelectionEvent e) {
						doSave();
					}
				});
				toolItemSave.setImage(ImageUtil.save);
			}

			{
				toolItemCancel = new ToolItem(toolBar, SWT.NONE);
				toolItemCancel.setText(Messages.getString("RecordUI.4")); //$NON-NLS-1$
				toolItemCancel.addSelectionListener(new SelectionAdapter() {
					@Override
					public void widgetSelected(SelectionEvent e) {
						doCancel();
					}
				});
				toolItemCancel.setImage(ImageUtil.cancel);
			}

		}

	}

	protected abstract void doCancel();

	protected abstract void doSave();

	protected abstract void doDel();

	protected abstract void doEdit();

	protected abstract void doAdd();
}
